package com.xkdx.caipiao.my;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.xkdx.caipiao.MainTabActivity;
import com.xkdx.caipiao.R;

public class WithdrawDepositActivity extends Activity {
	ImageView im;
	TextView tv;
	Button btn1, btn2;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.tixian_order_caipiao);

		init();
	}

	private void init() {
		im = (ImageView) findViewById(R.id.im);
		tv = (TextView) findViewById(R.id.tv);
		btn1 = (Button) findViewById(R.id.look_order);
		btn2 = (Button) findViewById(R.id.continue_buy);
		btn2.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				Intent intent = new Intent(WithdrawDepositActivity.this,
						MainTabActivity.class);
				intent.putExtra("tag", "hall");
				startActivity(intent);
				finish();
			}
		});

		btn1.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {

				Intent intent = new Intent(WithdrawDepositActivity.this,
						MyAccountActivity.class);
				intent.putExtra("tag", "tixian");
				startActivity(intent);
				finish();
			}
		});
	}

	public void onBackClick(View view) {
		finish();
	}
}
